MutableIterator

interface MutableIterator<out T> : Iterator<T>

An iterator over a mutable collection. Provides the ability to remove elements while iterating.

See also

Functions

hasNext
Link copied to clipboard
abstract operator fun hasNext(): Boolean
next
Link copied to clipboard
abstract operator fun next(): T
remove
Link copied to clipboard
abstract fun remove()

Removes from the underlying collection the last element returned by this iterator.

Inheritors

MutableListIterator
Link copied to clipboard